﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.SMS.Data
{
    public interface IUserRoleService
    {
        void LogIn(string username, bool remember);
        //the key maybe id , alias or email
        bool ValidationUser(string key,string password);
        //the key maybe id , alias or email
        User GetUserInfo(string key);
        string[] GetRolesForUser(string username);
        long[] GetRolesValueForUser(string username);
        string GetRedirectUrl(string UserName, bool remember);
        void LogOut();
    }
}
